home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
graphics
/
mpeg2anim
/
mptemp
/
smartscale.doc
< prev
Wrap
Text File
|
1999-05-14
|
902b
|
27 lines
Smart scale v1.0 (c) 1996 Lorence Lombardo.
WHAT THE F_CK IS SMARTSCALE ?
SmartScale is a little program i wrote intended for picture conversion script
files. It has 3 output modes. Con, env & ask.
It will look at a picture or animation and tell you the dimensions of
that picture and output the information to the con or env.
If you enter x & y scale args, the args will be recalculated & output'd in order
to keep the aspect ratio of the picture or animation the same.
If you use the ask mode you will be asked to enter an X & Y scale. Ideal for
script files.
Usage:
SmartScale [con/env/ask] [file name] [x scale] [y scale] [u]
eg. SmartScale env pic.iff 640 200
ENV outputs:
XIN & YIN input size of picture
XINh half of input XIN
DIN depth of picture
XOUT & YOUT calculated size of picture within the [x & y scale] args
while still maintaining the correct aspect ratio.